﻿using Abp.Authorization;
using System;
using System.Collections.Generic;
using System.Text;

namespace Ny.CenterServers.Permissions
{
    /// <summary>
    /// 权限信息
    /// </summary>
    public static class SyPermissions
    {
        /// <summary>
        /// 创建测试
        /// </summary>
        public static readonly string ActionTestCreate = "Action.Test.Create";

    }
    /// <summary>
    /// Test权限管理
    /// </summary>
    public class TestAuthorizationProvider : AuthorizationProvider
    {
        /// <summary>
        /// 注册权限
        /// </summary>
        /// <param name="context"></param>
        public override void SetPermissions(IPermissionDefinitionContext context)
        {
            context.CreatePermission(SyPermissions.ActionTestCreate);
        }
    }
}
